#ifndef PETSELECTION_H
#define PETSELECTION_H

#include <QDialog>
#include <QPushButton>
#include <QRadioButton>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBOxLayout>
#include <QLabel>

class PetSelection : public QDialog
{
    Q_OBJECT
public:
    PetSelection(QWidget *parent = nullptr);
    QString getPetType() const;
    QString getPetName() const;

private slots:
    void confirmClick();

private:
    QRadioButton *catRadioButton;
    QRadioButton *dogRadioButton;
    QRadioButton *hamsterRadioButton;
    QLineEdit *nameLineEdit;  //输入名字
    QPushButton *confirmButton; //确认输入
    QString petType; //存储种类
    QString petName; //存储名字
};

#endif // PETSELECTION_H
